<template>
  <router-layout>
    <div class="container van-hairline--top">
      <div class="content-box">
        <div class="head-box">
          <div class="img-box">
            <img
              :src="info.portrait?info.portrait:'https://gw.alicdn.com/tfs/TB15Q0lOmzqK1RjSZFHXXb3CpXa-400-400.png'"
              width="100%"
              height="100%"
              alt
            >
          </div>
          <p>{{info.user_name}}</p>
        </div>
        <div class="form-box">
          <van-cell-group>
            <van-cell title="我参与的" @click="onClick">
              <img
                class="img-icon"
                slot="icon"
                src="https://gw.alicdn.com/tfs/TB1dA0mObvpK1RjSZFqXXcXUVXa-48-48.png"
              >
              <i slot="right-icon" class="iconfont icon-gengduo"></i>
            </van-cell>
          </van-cell-group>
        </div>
      </div>
    </div>
  </router-layout>
</template>
<script>
import TitleItem from "../../components/public/title/title";
export default {
  name: "SurveyMe",
  components: { TitleItem },
  data() {
    return {
      info: {}
    };
  },
  methods: {
    onClick() {
      this.$router.push({
        path: "/SurveyPartake",
        query: { id: 1 }
      });
    }
  },
  created() {},
  mounted() {
    this.info = JSON.parse(localStorage.getItem("user"));
  }
};
</script>
<style lang="scss" scoped>
@import "SurveyMe";
</style>
